﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Model;

namespace SaleManagement.Services.Mapping
{
   public class CategoryDisplayMapping
    {
       public static ViewModelCategotyDisplay ConvertToDisplay(ViewModelCategory model, ViewModelCategoryDetail modelDetail)
       {
           ViewModelCategotyDisplay modelDisplay = new ViewModelCategotyDisplay();
           modelDisplay.Id = model.Id;
           modelDisplay.Name = modelDetail.Name;
           modelDisplay.Status = model.Status;
           return modelDisplay;
       }
    }
}
